-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixmix/new sdk rc #263
Mixmix/new sdk rc #263
Conversation
const { entropy: naynay } = await setupTest(t, { networkType }) | ||
// await run('jump-start network', jumpStartNetwork(entropy)) | ||
const { run, entropy: naynay } = await setupTest(t) | ||
await run('fund naynay', fundAccount(t, naynay)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I loved the pattern you started extracting some other setup. I noticed that we want a funded account which is just "set up" for us and that extracting it made the tests a whole lot simpler (to my mind any way)
tests/faucet.test.ts
Outdated
const transfer = new EntropyTransfer(entropy, endpoint) | ||
const account = new EntropyAccount(entropy, endpoint) | ||
const faucet = new EntropyFaucet(entropy, endpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less words means less reading. I'm pretty happy we're not gonna get collisions and am watching closely for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rest of this file, I shuffled lines around such that there are groupings like
- prep
- action
- test
- prep
- action
- test
This is fully an opinionated style thing, but it makes reading quicker because the relevant context is grouped into parcels. 🤷
6cbc5e5
to
0ae60f2
Compare
0ae60f2
to
ce45b24
Compare
Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>
Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>
Thanks for the review, Good catches you made there. |
tweeeeks
this PR is just test readability. Sometimes when I'm reviewing I have to move things into chunks of related logic to be able to follow the logic. Thought I'd post the changes and see you agree
there is 1 test where I sharpen the test to an exact value